package com.hs.srm.admin.modules.requisition.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.hs.srm.admin.modules.orders.entity.ScmPoItemEntity;
import com.hs.srm.admin.modules.requisition.entity.SamplePurchRequestItemEntity;
import com.hs.srm.admin.modules.requisition.vo.SupplyGoodsEntityVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author ych
 * @since 2020-05-09 09:12:05
 */
public interface SamplePurchRequestItemDao extends BaseMapper<SamplePurchRequestItemEntity> {

    int updateStatus(@Param("requestCode") String requestCode, @Param("purchRequestItemCode") String purchRequestItemCode);

    List<SupplyGoodsEntityVO> getSampleDistributeById(@Param("idList") ArrayList<String> idList);

    //查找当天的收获的样品订单
    List<ScmPoItemEntity> findItemPoNo();

    //分页查询请购单
    List<SamplePurchRequestItemEntity> getListSample(Page<SamplePurchRequestItemEntity> page,@Param("params") Map<String, Object> params);
}
